package yzserver.sx4a.form;


import yzserver.sx4a.domain.JobDomain;
import yzserver.sx4a.domain.RoleDomain;

/**
 * Created with IntelliJ IDEA.
 * User: andrew
 * Date: 14-8-15
 * Time: 上午10:20
 * To change this template use File | Settings | File Templates.
 */
public class Role {
    private String roleid;//角色ID
    private String rolename;//     角色名称
    private String roleparent;//  上级角色编号 用于存放权限树形结构 无树结构可赋值为空
    private String permissionid;// 权限id，根据应用需求定义是否需要    规则（以@分隔）
    private String roledes;//      角色描述
    private String regionid;//     地市代码(BOSS用)
    private String loginno;//      操作BOSS工号(BOSS用)
    private String operatecode;//  操作代码(BOSS用)
    private String groupid;//      组织机构编码(BOSS用)
    private String roletype;//     角色类型(BOSS用)
    private String useflag;//      有效标志(BOSS用)
    private String operatenote;//  操作备注(BOSS用)



    public Role(RoleDomain domain) {
        this.roleid = domain.getROLEID();
        this.rolename = domain.getROLENAME();
        this.roleparent = domain.getROLEPARENT();
        this.permissionid = domain.getPERMISSIONID();
        this.roledes = domain.getROLEDES();
        this.regionid = domain.getREGIONID();
        this.loginno = domain.getLOGINNO();
        this.operatecode = domain.getOPERATECODE();
        this.groupid = domain.getGROUPID();
        this.roletype = domain.getROLETYPE();
        this.useflag = domain.getUSEFLAG();
        this.operatenote = domain.getOPERATENOTE();
    }

    public Role() {

    }

    public String getRoleid() {
        return roleid;
    }

    public void setRoleid(String roleid) {
        this.roleid = roleid;
    }

    public String getRolename() {
        return rolename;
    }

    public void setRolename(String rolename) {
        this.rolename = rolename;
    }

    public String getRoleparent() {
        return roleparent;
    }

    public void setRoleparent(String roleparent) {
        this.roleparent = roleparent;
    }

    public String getPermissionid() {
        return permissionid;
    }

    public void setPermissionid(String permissionid) {
        this.permissionid = permissionid;
    }

    public String getRoledes() {
        return roledes;
    }

    public void setRoledes(String roledes) {
        this.roledes = roledes;
    }

    public String getRegionid() {
        return regionid;
    }

    public void setRegionid(String regionid) {
        this.regionid = regionid;
    }

    public String getLoginno() {
        return loginno;
    }

    public void setLoginno(String loginno) {
        this.loginno = loginno;
    }

    public String getOperatecode() {
        return operatecode;
    }

    public void setOperatecode(String operatecode) {
        this.operatecode = operatecode;
    }

    public String getGroupid() {
        return groupid;
    }

    public void setGroupid(String groupid) {
        this.groupid = groupid;
    }

    public String getRoletype() {
        return roletype;
    }

    public void setRoletype(String roletype) {
        this.roletype = roletype;
    }

    public String getUseflag() {
        return useflag;
    }

    public void setUseflag(String useflag) {
        this.useflag = useflag;
    }

    public String getOperatenote() {
        return operatenote;
    }

    public void setOperatenote(String operatenote) {
        this.operatenote = operatenote;
    }
}
